package utils

import (
	"fmt"
	"github.com/zeromicro/go-zero/core/hash"
	"strings"
)

// SignByMD5 类MD5_Sign：MD5签名和验签
func SignByMD5(requestSign, merchantKey string) string {
	reqHmac := ""
	reqHmac = strings.ToUpper(hash.Md5Hex([]byte(fmt.Sprint(requestSign, merchantKey))))
	return reqHmac
}
